/**
 * User: Oleksii Savchenko
 * Date: 24.01.13
 * Time: 17:44
 */
var animator = {

    /**
     * Hide given element from UI
     * @param {HTMLElement} elem - element of DOM
     * @param {Number} delay - in milliseconds, 0 by default
     */

    hide: function(elem, delay){
        if (delay === undefined) {delay = 0;}
        setTimeout(function(){
            elem.setAttribute("style", "display: none");
        }, delay);
    }

};